package com.dmai.aiet.epc.archive.service;


import com.dmai.aiet.epc.archive.base.PageResult;
import com.dmai.aiet.epc.archive.entity.SpecialTopicStudyRecords;
import com.dmai.aiet.epc.archive.pojo.vo.LearningAggregateVo;
import com.dmai.aiet.epc.archive.pojo.vo.LearningCertificateItem;
import com.dmai.aiet.epc.archive.pojo.vo.LearningStatItem;

import java.util.Map;
import java.util.List;

/**
 * 专题学习轨迹表
 *
 * @author
 * @email
 * @date 2024-07-22 19:16:09
 */
public interface SpecialTopicStudyRecordsService {


    /**
     * 根据用户获取学习时长、学习课程数
     *
     * @param userid
     */
    LearningAggregateVo getAggregate(String userid);


    /**
     * 根据用户获取学习趋势图
     *
     * @param userid
     */
    List<LearningStatItem> getStat(String userid, Integer axle, Long startStamp, Long endStamp);

    /**
     * 根据用户获取证书
     *
     * @param userid
     */
    List<LearningCertificateItem> getCertificate(String userid);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<SpecialTopicStudyRecords> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<SpecialTopicStudyRecords> findAll(Map<String, Object> params);
}

